﻿@model SiteConfigViewModel
	<div class="layui-row layui-col-space15">
		<div class="layui-col-md12">
			<div class="layui-card">
				<div class="layui-card-header">用户参数设置</div>
				<div class="layui-card-body" pad15>

					<form asp-controller="SiteConfig" asp-action="UserConfig" class="layui-form" wid100 lay-filter="">
						<div class="layui-form-item">
							<label class="layui-form-label">开启会员注册</label>
							<div class="layui-input-block">
								<input type="checkbox" asp-for="UserConfigEntity.EnableUserReg" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">共一个Email</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="checkbox" asp-for="UserConfigEntity.EnableMultiRegPerEmail" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
							<div class="layui-form-mid layui-word-aux">
								允许一个Email注册多个会员
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">注册最少字符</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.UserNameLimit">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.UserNameLimit" style="color:red;"></span>
								新会员注册时用户名最少字符数
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">注册最多字符</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.UserNameMax">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.UserNameMax" style="color:red;"></span>
								新会员注册时用户名最多字符数
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">禁止注册用户名</label>
							<div class="layui-input-block">
								<textarea class="layui-textarea" asp-for="UserConfigEntity.UserNameRegDisabled" placeholder="指定的用户名将被禁止注册，每个用户名请用“|”符号分隔"></textarea>
								<span class="layui-bg-green">说明：指定的用户名将被禁止注册，每个用户名请用“|”符号分隔</span>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">允许注册商户</label>
							<div class="layui-input-block">
								<input type="checkbox" asp-for="UserConfigEntity.EnableRegCompany" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">注册需管理认证</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="checkbox" asp-for="UserConfigEntity.AdminCheckReg" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
							<div class="layui-form-mid layui-word-aux">
								若选择“是”，则会员必须在通过管理员认证后才能真正成为正式注册会员。
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">注册需邮件验证</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="checkbox" asp-for="UserConfigEntity.EmailCheckReg" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
							<div class="layui-form-mid layui-word-aux">
								若选择“是”，则会员注册后系统会发一封带有验证码的邮件给此会员，会员必须在通过邮件验证后才能真正成为正式注册会员。
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								验证邮件内容
							</label>
							<div class="layui-input-block">
								<textarea class="layui-textarea" asp-for="UserConfigEntity.EmailOfRegCheck" placeholder="邮件内容支持HTML，邮件内容中可用标签说明如下{$CheckNum}验证码；{$CheckUrl}验证地址；"></textarea>
								<span class="layui-bg-green">
									说明：邮件内容支持HTML，邮件内容中可用标签说明如下{$CheckNum}验证码；{$CheckUrl}验证地址；
								</span>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								注册所属会员组
							</label>
							<div class="layui-input-block">
								<select asp-for="UserConfigEntity.GroupID" asp-items="ViewBag.GroupsList"></select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">启用资金功能</label>
							<div class="layui-input-block">
								<input type="checkbox" asp-for="UserConfigEntity.EnableMoney" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">启用积分功能</label>
							<div class="layui-input-block">
								<input type="checkbox" asp-for="UserConfigEntity.EnableExp" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								启用
								@ViewBag.PointName
								功能
							</label>
							<div class="layui-input-block">
								<input type="checkbox" asp-for="UserConfigEntity.EnablePoint" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">启用有效期功能</label>
							<div class="layui-input-block">
								<input type="checkbox" asp-for="UserConfigEntity.EnableValidNum" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">注册赠送的资金</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="UserConfigEntity.PresentMoney" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">元</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.PresentMoney" style="color:red;"></span>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">注册赠送的积分</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="UserConfigEntity.PresentExp" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">积分</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.PresentExp" style="color:red;"></span>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								注册赠送的
								@ViewBag.PointName
							</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="UserConfigEntity.PresentPoint" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">@ViewBag.PointUnit</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.PresentPoint" style="color:red;"></span>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">注册赠送有效期</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="UserConfigEntity.PresentValidNum" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">
								<select asp-for="UserConfigEntity.PresentValidUnit">
									<option value="1">天</option>
									<option value="2">月</option>
									<option value="3">年</option>
								</select>
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.PresentValidNum" style="color:red;"></span>
								（为－1表示无限期）
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								登录奖励的积分
							</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="UserConfigEntity.PresentExpPerLogOn" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">
								积分
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.PresentExpPerLogOn" style="color:red;"></span>
								(一天只计算一次)
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								登录奖励的
								@ViewBag.PointName
							</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="UserConfigEntity.AddPointPerLogOn" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">
								@ViewBag.PointUnit
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.AddPointPerLogOn" style="color:red;"></span>
								(一天只计算一次)
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								资金换积分
							</label>
							<div class="layui-form-mid layui-word-aux">每</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.MoneyExchangeExpByMoney">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MoneyExchangeExpByMoney" style="color:red;"></span>
								元钱可兑换
							</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.MoneyExchangeExpByExp">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MoneyExchangeExpByExp" style="color:red;"></span>
								积分
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								资金换
								@ViewBag.PointName
							</label>
							<div class="layui-form-mid layui-word-aux">每</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.MoneyExchangePointByMoney">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MoneyExchangePointByMoney" style="color:red;"></span>
								元钱可兑换
							</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.MoneyExchangePointByPoint">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MoneyExchangePointByPoint" style="color:red;"></span>
								@ViewBag.PointUnit@ViewBag.PointName
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								资金换有效期
							</label>
							<div class="layui-form-mid layui-word-aux">每</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.MoneyExchangeValidDayByMoney">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MoneyExchangeValidDayByMoney" style="color:red;"></span>
								元钱可兑换
							</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.MoneyExchangeValidDayByValidDay">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MoneyExchangeValidDayByValidDay" style="color:red;"></span>
								天有效期
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								积分换
								@ViewBag.PointName
							</label>
							<div class="layui-form-mid layui-word-aux">每</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.UserExpExchangePointByExp">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.UserExpExchangePointByExp" style="color:red;"></span>
								积分可兑换
							</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.UserExpExchangePointByPoint">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.UserExpExchangePointByPoint" style="color:red;"></span>
								@ViewBag.PointUnit@ViewBag.PointName
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								积分换有效期
							</label>
							<div class="layui-form-mid layui-word-aux">每</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.UserExpExchangeValidDayByExp">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.UserExpExchangeValidDayByExp" style="color:red;"></span>
								积分可兑换
							</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.UserExpExchangeValidDayByValidDay">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.UserExpExchangeValidDayByValidDay" style="color:red;"></span>
								天有效期
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								@ViewBag.PointName
								的名称
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.PointName">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								@ViewBag.PointName
								的单位
							</label>
							<div class="layui-input-block">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.PointUnit">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">开启提现功能</label>
							<div class="layui-input-block">
								<input type="checkbox" asp-for="UserConfigEntity.IsMention" lay-skin="switch" lay-text="已开启|已关闭">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">提现起始金额</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="UserConfigEntity.MentionMoneyBegin" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">元</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MentionMoneyBegin" style="color:red;"></span>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">提现手续费</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="UserConfigEntity.MentionFeeBegin" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">元/笔</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MentionFeeBegin" style="color:red;"></span>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">
								提现金额超过
							</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.MentionMoneyBegin1">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MentionMoneyBegin1" style="color:red;"></span>
								元时，按
							</div>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="UserConfigEntity.MentionFeeBegin1">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="UserConfigEntity.MentionFeeBegin1" style="color:red;"></span>
								%计费
							</div>
						</div>
						<div class="layui-form-item">
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit lay-filter="">确认保存</button>
								<span style="color:red; font-size:18px;">@Html.ValidationSummary(true)</span>
							</div>
						</div>
					</form>

				</div>
			</div>
		</div>
	</div>
	